package com.xy.smartsms.plugincmcc.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by song on 2017/3/6.
 */

public class SysparaUtil {

    public static long getlong(Context context, String key, long defaultvalue) {
        SharedPreferences settings = context.getSharedPreferences("cmcc_xml", Context.MODE_PRIVATE);
        long time = settings.getLong(key, defaultvalue);
        return time;
    }


    public static void savelong(Context context, String key, long time) {
        SharedPreferences settings = context.getSharedPreferences("cmcc_xml", context.MODE_PRIVATE);
        SharedPreferences.Editor editor = settings.edit();
        editor.putLong(key, time);
        editor.commit();
    }
}
